package com.xinya.wanandroidclient

import android.content.Intent
import android.os.Bundle
import com.xinya.wanandroidclient.base.BaseActivity
import java.util.Timer
import kotlin.concurrent.schedule

class SplashActivity : BaseActivity() {

    override fun getLayoutId() = R.layout.activity_splash

    override fun init(savedInstanceState: Bundle?) {
        // 设置定时器, 自动跳转到 MainActivity
        Timer("settingUp", false).schedule(1000) {
            startActivity(Intent(this@SplashActivity, MainActivity::class.java))
            finish()
        }
    }
}